<html>
<head><meta charset="utf-8"><title>destructure pattern · t-compiler/wg-rfc-2229 · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/189812-t-compiler/wg-rfc-2229/index.html">t-compiler/wg-rfc-2229</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/189812-t-compiler/wg-rfc-2229/topic/destructure.20pattern.html">destructure pattern</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="222460310"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/189812-t-compiler/wg-rfc-2229/topic/destructure%20pattern/near/222460310" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Aman Arora <a href="https://rust-lang.github.io/zulip_archive/stream/189812-t-compiler/wg-rfc-2229/topic/destructure.20pattern.html#222460310">(Jan 12 2021 at 16:52)</a>:</h4>
<p>So we started working on using PlaceBuilder everywhere in mir_build, I think this might still not work because we need to introduce fake reads for the scrutinee place in match block. If we look at the generated MIR we see that the fake reads still exist. </p>
<p>Now we can't introduce the fake reads as we have our captures setup because we don't capture the place we are doing the pattern match on.</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>